/**
 * 管理用户
 */
export default {
  /** 查询用户列表 */
  'get /admin-api/a/users': {
    code: 0,
    msg: 'OK',
    data: {
      total: 2,
      items: [
        {
          id: 5,
          name: 'Richer Jen2',
          mobile: '18500011000',
          roleId: 2,
          password: '2323232',
          status: 1,
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
          createdAt: '2018-05-12 12:12:12',
        },
        {
          id: 6,
          name: 'Richer Jen',
          password: '2323232',
          mobile: '18500011000',
          roleId: 1,
          status: 1,
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
          createdAt: '2018-05-12 12:12:12',
        },
      ],
    },
  },
  /** 查询用户角色 */
  'get /admin-api/a/roles': {
    code: 0,
    msg: 'OK',
    data: [
      {
        id: 1,
        name: '超级管理员',
      },
      {
        id: 2,
        name: '管理员',
      },
      {
        id: 3,
        name: '编辑',
      },
      {
        id: 4,
        name: '客服',
      },
      {
        id: 5,
        name: '访客',
      },
      {
        id: 6,
        name: '运营',
      },
    ],
  },
  /** 查询用户详情 */
  'get /admin-api/a/users/:id': {
    code: 0,
    msg: 'OK',
    data: {
      id: 4,
      name: 'Richer Jen',
      mobile: '18500011000',
      password: '2323232',
      roleId: 3,
      status: 1,
      avatar: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
      createdAt: '2018-05-12 12:12:12',
    },
  },
  /** 更新用户profile */
  'put /admin-api/a/users/:id': {
    code: 0,
    msg: 'OK',
    data: '',
  },
  /** 更新已登陆用户的profile */
  'put /admin-api/a/users/profile': {
    code: 0,
    msg: 'OK',
    data: '',
  },
  /** 更新用户状态 */
  'put /admin-api/a/users/:id/status': {
    code: 0,
    msg: 'OK',
    data: '',
  },
  /** 创建用户 */
  'post /admin-api/a/users': {
    code: 0,
    msg: 'OK',
    data: '',
  },
  'put /admin-api/a/users/:id/password': {
    code: 0,
    msg: 'OK',
    data: '',
  },
  'put /admin-api/a/users/password': {
    code: 0,
    msg: 'OK',
    data: '',
  },
};
